/**
 * 
 */
package com.sc.softmgr.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;

import io.swagger.annotations.ApiOperation;

/**
 * 
 * @content 用于对外提供API
 * 
 * @date 2017年6月7日
 * 
 * @author OprCalf
 * 
 */
@RestController
@RequestMapping(value = "/softmgrApi")
public class SoftmgrApi {

	@ApiOperation(value = "获取API信息", notes = "get api info")
	@RequestMapping(value = "/getApi", method = RequestMethod.GET)
	public String getApi(String name) {
		JSONObject json = new JSONObject();
		json.put("apikey", "apiinfo");
		return json.toJSONString();
	}
}
